#include "logindialog.h"
#include "ui_logindialog.h"

#include <QtDebug>

LoginDialog::LoginDialog(const QString& netID, QWidget *parent) :
    QDialog(parent),
    m_ui(new Ui::LoginDialog)
{
    m_ui->setupUi(this);
	m_ui->netIDValue->setText(netID);
}

LoginDialog::~LoginDialog()
{
    delete m_ui;
}

void LoginDialog::changeEvent(QEvent *e)
{
    QDialog::changeEvent(e);
    switch (e->type()) {
    case QEvent::LanguageChange:
        m_ui->retranslateUi(this);
        break;
    default:
        break;
    }
}

QString LoginDialog::netID()
{
	return QString(m_ui->netIDValue->text());
}

QString LoginDialog::password()
{
	return QString(m_ui->passwordInput->text());
}
